﻿CREATE FUNCTION [dbo].[IsProjectMemberRemovalRestricted]
(@UserID INT, @ProjectID INT)
RETURNS BIT
AS
BEGIN

	DECLARE @ret bit
	SET @ret = 0

	SELECT @ret = count(*) FROM dbo.EntryLog WHERE userId=@UserID AND projectId=@ProjectID
	GROUP BY userId, projectId 
	
	RETURN @ret
END

